package com.ruoyi.system.mapper;

import java.util.List;
import com.ruoyi.system.domain.RegGroup;
import org.apache.ibatis.annotations.Param;

/**
 * 变量分组Mapper接口
 * 
 * @author yaozh
 * @date 2024-02-29
 */
public interface RegGroupMapper 
{
    List<RegGroup> findAllRegGroup(@Param("dbName") String dbName);

    int insertDrTypeModeGroupName(@Param("dbName") String dbName, @Param(value="regGroup") RegGroup regGroup);

    void insertRegGroupNameWithoutId(@Param("dbName") String dbName, @Param(value="regGroup") RegGroup regGroup);

    /**
     * 查询变量分组
     * 
     * @param id 变量分组主键
     * @return 变量分组
     */
    public RegGroup selectRegGroupById(@Param("id") Long id, @Param("dbName") String dbName);

    public RegGroup selectRegGroupByGroupName(@Param("groupName") String groupName, @Param("dbName") String dbName);

    /**
     * 查询变量分组列表
     * 
     * @param regGroup 变量分组
     * @return 变量分组集合
     */
    public List<RegGroup> selectRegGroupList(@Param("regGroup") RegGroup regGroup, @Param("dbName") String dbName);

    public List<RegGroup> selectRegGroupForAll( @Param("dbName") String dbName);

    /**
     * 新增变量分组
     * 
     * @param regGroup 变量分组
     * @return 结果
     */
    public int insertRegGroup(@Param("regGroup") RegGroup regGroup, @Param("dbName") String dbName);

    /**
     * 修改变量分组
     * 
     * @param regGroup 变量分组
     * @return 结果
     */
    public int updateRegGroup(@Param("regGroup") RegGroup regGroup, @Param("dbName") String dbName);

    /**
     * 删除变量分组
     * 
     * @param id 变量分组主键
     * @return 结果
     */
    public int deleteRegGroupById(@Param("id") Long id, @Param("dbName") String dbName);

    /**
     * 批量删除变量分组
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteRegGroupByIds(@Param("ids") Long[] ids,@Param("dbName") String dbName);

}
